package com.clqteam.serviceimpl;

import com.clqteam.dao.ShowDailyReportDao;
import com.clqteam.daoimpl.ShowDailyReportDaoImpl;
import com.clqteam.service.ShowDailyReportService;

import net.sf.json.JSONObject;

/**
 * 
 * @author CLQ
 *
 */
public class ShowDailyReportServiceImpl implements ShowDailyReportService{
  ShowDailyReportDao dayDao =new ShowDailyReportDaoImpl();
	@Override
	public JSONObject findDailyReportInfo(int page, int rows) {
		JSONObject js=new JSONObject();
		//此出key值固定，参照json数据格式
		js.put("total", dayDao.getDailyReportCountBydrId());
		js.put("rows", dayDao.getDailyReportInfo(page, rows));
		return js;
	}

}
